package com.aggregate.pay.weixin.support.client;

import com.aggregate.pay.weixin.bean.UnifiedOrderData;
import com.aggregate.pay.weixin.bean.UnifiedOrderResult;
import com.aggregate.pay.weixin.support.AbstractClient;
import com.aggregate.pay.weixin.support.Factory;
import com.aggregate.pay.weixin.support.Merch;

/**
 * 微信支付官方接口-统一下单
 * @author Moyq5
 * @date 2018年6月15日
 */
public class UnifiedOrder extends AbstractClient<UnifiedOrderData, UnifiedOrderResult> {

	public UnifiedOrder(Merch merch) {
		super(merch);
	}

	@Override
	protected Class<UnifiedOrderResult> getResultClass() {
		return UnifiedOrderResult.class;
	}

	@Override
	protected String getApiPath() {
		return Factory.getConfig().serverPath() + "/pay/unifiedorder";
	}

}
